package com.wnxy.sdd.common.result.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {
    SUCCESS(200,"操作成功"),
    FAIL(500,"操作失败"),

    DATA_IS_NULL(50001,"数据为空"),
    INVALID_PARAMS(50002,"非法参数");

    private Integer code;
    private String msg;

    // 枚举构造器默认是私有
    ResultEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }
}
